package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 t_user
 * 
 * @author ruoyi
 * @date 2022-04-03
 */
public class TUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户唯一标识 */
    private Long uid;

    /** 登录账号 */
    @Excel(name = "登录账号")
    private String loginName;

    /** 用户密码 */
    @Excel(name = "用户密码")
    private String upass;

    /** 用户名，如张三 */
    @Excel(name = "用户名，如张三")
    private String uname;

    /** 角色名称，管理员和财务 */
    @Excel(name = "角色名称，管理员和财务")
    private String roleName;
    private Long roleId;

    /** api调用Key */
    @Excel(name = "api调用Key")
    private String apiKey;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifytime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime;

    private String avatar;
    /** 所属公司 */
    @Excel(name = "所属公司")
    private String companyName;
    private Long ofCompany;

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public Long getOfCompany() {
        return ofCompany;
    }

    public void setOfCompany(Long ofCompany) {
        this.ofCompany = ofCompany;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public void setUid(Long uid)
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setLoginName(String loginName) 
    {
        this.loginName = loginName;
    }

    public String getLoginName() 
    {
        return loginName;
    }
    public void setUpass(String upass) 
    {
        this.upass = upass;
    }

    public String getUpass() 
    {
        return upass;
    }
    public void setUname(String uname) 
    {
        this.uname = uname;
    }

    public String getUname() 
    {
        return uname;
    }
    public void setRoleName(String roleName) 
    {
        this.roleName = roleName;
    }

    public String getRoleName() 
    {
        return roleName;
    }
    public void setApiKey(String apiKey) 
    {
        this.apiKey = apiKey;
    }

    public String getApiKey() 
    {
        return apiKey;
    }
    public void setModifytime(Date modifytime) 
    {
        this.modifytime = modifytime;
    }

    public Date getModifytime() 
    {
        return modifytime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("uid", getUid())
            .append("loginName", getLoginName())
            .append("upass", getUpass())
            .append("uname", getUname())
            .append("roleName", getRoleName())
            .append("apiKey", getApiKey())
            .append("modifytime", getModifytime())
            .toString();
    }
}
